﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;
namespace ImageComparer
{
    static class Program
    {
        private static FormMain form;
        [STAThread]
        static void Main()
        {
            try
            {
                form = new FormMain();
                form.FormClosed +=new FormClosedEventHandler(form_FormClosed);;
                Application.Run(form);
            }
            finally
            {
                if (form != null) form.Dispose();
                Application.Exit();
            }
        }

     static void  form_FormClosed(object sender, FormClosedEventArgs e)
      {
         Application.Exit();
       }

    }
}
